/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mobilevikings.app.simbalance;

/**
 *
 * @author Jeroen
 */
public class SimBalance {

    private String expirationDate;
    private double credits;
    private int sms;
    private int data;
    private boolean expired;

    /**
     * @return the expirationDate
     */
    public String getExpirationDate() {
        return expirationDate;
    }

    /**
     * @param expirationDate the expirationDate to set
     */
    public void setExpirationDate(String expirationDate) {
        this.expirationDate = expirationDate;
    }

    /**
     * @return the credits
     */
    public double getCredits() {
        return credits;
    }

    /**
     * @param credits the credits to set
     */
    public void setCredits(double credits) {
        this.credits = credits;
    }

    /**
     * @return the sms
     */
    public int getSms() {
        return sms;
    }

    /**
     * @param sms the sms to set
     */
    public void setSms(int sms) {
        this.sms = sms;
    }

    /**
     * @return the data
     */
    public int getData() {
        return data;
    }

    /**
     * @param data the data to set
     */
    public void setData(int data) {
        this.data = data;
    }

    /**
     * @return the expired
     */
    public boolean isExpired() {
        return expired;
    }

    /**
     * @param expired the expired to set
     */
    public void setExpired(boolean expired) {
        this.expired = expired;
    }

    /**
     *
     * @return the data value in a human readable form
     */
    public String getDataHumanReadable() {
        StringBuffer sb = new StringBuffer();

        int humanData = getData() / 1024 / 1024;
        sb.append(humanData);
        sb.append(" ");
        sb.append("MB");
        return sb.toString();
    }
}
